import Map from '../class/Map';

const globalMap = new Map();

function put(key, value) {
	globalMap.put(key, value);
}

function get(key) {
	return globalMap.get(key);
}

function remove(key) {
	globalMap.remove(key);
}

const PATHNAME = 'GLOBAL_MAP_PATHNAME';

function putPathname(pathname) {
	put(PATHNAME, pathname);
}

function getPathname() {
	return get(PATHNAME);
}

export {
	put,
	get,
	remove,
	putPathname,
	getPathname,
}
